package com.bye.xiaomi_mall.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 商品类别对象 td_goods_category
 *
 * @author ruoyi
 * @date 2025-03-15
 */
public class TdGoodsCategory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 类别名
     */
    @Excel(name = "类别名")
    private String categoryName;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private String sort;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    @Excel(name = "该类别所有商品")
    private List<TdGoods> goodsList;

    public List<TdGoods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<TdGoods> goodsList) {
        this.goodsList = goodsList;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getSort() {
        return sort;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("categoryName", getCategoryName())
                .append("sort", getSort())
                .append("createTime", getCreateTime())
                .append("status", getStatus())
                .toString();
    }
}
